<?php require_once(dirname(__FILE__)."/../config/config.php"); ?>
<?php if(!isset($_SESSION['admin_name'])){header("location:admin_login.php");}?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>购物单详细信息</title>
</head>
<body>

<h1 align="center">购物单详细信息</h1>
    <?php 
	  		    $id=$_GET['id'];
				 $sql="select * from zy_item  where order_id='".$id."' order by item_id desc";
				// echo $sql;
				  $result = mysql_query($sql);
	?>
				 
				  
<form id="form1" name="form1" method="post" action="">
  <table width="900" height="25" align="center" border="1">
    <tr>
	  <td width="150" height="25">食物名称</td>
      <td width="150" height="25">单价</td>
      <td width="150" height="25">数量</td>
      <td width="150" height="25">备注</td>
	  <td width="150" height="25">小计</td>
	</tr>
  
  <?php
  while($zy_item=mysql_fetch_array($result)){
  ?>
  
    <tr>
	 
      <td width="150" height="25"><?php echo $zy_item['food_name']; ?></td>
      <td width="150" height="25"><?php echo $zy_item['food_price']; ?></td>
      <td width="150" height="25"><?php echo $zy_item['count']?></td>
      <td width="150" height="25"><?php echo $zy_item['remark'];?></td>
      <td width="150" height="25"><?php echo $zy_item['subtotal'];?></td>
	 
    </tr>
  <?php }?>
  <tr>
	 
      <td width="150" height="25">外送费</td>
      <td width="150" height="25"></td>
      <td width="150" height="25"></td>
      <td width="150" height="25"></td>
      <td width="150" height="25">20</td>
	 
    </tr>
  </table>
<h3 align="center"><a href="javascript:void(0);"  onclick="openclose()">关闭</a></h3>
</form>
</body>
</html>
<script type="text/javascript">
function openclose()
{
  window.close();
}
</script>